﻿using System;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class EntExU2Record : BiffRecord
    {
        private byte[] rgb;

        protected override void ReadContent(BiffReaderContext context, int length)
        {
            this.rgb = context.ReadBytes(length);
        }

        internal override BiffRecordType RecordType
        {
            get { return BiffRecordType.EntExU2; }
        }

        internal override void WriteContent(BiffWriterWorkbookContext context)
        {
            context.Write(rgb);
        }
    }
}